<!-- 
	nuxt3 请求数据的方式 
	1. useAsyncData
	2. useFetch
	3. useLazyFetch
	4. useLayAsyncData	
-->
<template>{{ list }}</template>

<script setup>
import { ref, toRef } from 'vue'
const url = 'http://121.36.81.61:8000/getTenArticleList'
// const res = await useAsyncData('getList', () => $fetch(url), { lazy: true })
const res = await useFetch(url, { method: 'get', id: 1 })
const list = ref(res.data._rawValue.data)
</script>
<style scoped></style>
